import request from "@/utils/request";
//查询班级列表

export const queryClazzPageApi = (name, begin, end, page, pageSize) =>
  request.get(
    `/clazzs?name=${name}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`
  );

//添加班级
export const addClazzApi = (data) => request.post("/clazzs", data);

//根据ID查询班级
export const queryInfoApi = (id) => request.get(`/clazzs/${id}`);

//修改班级信息
export const updateClazzApi = (data) => request.put("/clazzs", data);

//删除班级
export const deleteClazzApi = (id) => request.delete(`/clazzs/${id}`);
